<?php

namespace app\common\validate;

use think\Validate;

class Position extends Validate
{

    /**
     * 验证规则
     */
    protected $rule = [
        'title' => 'require',
        'description' => 'require',
        'type'   => 'require', 
    ];

    /**
     * 提示消息
     */
    protected $message = [
    ];

    /**
     * 字段描述
     */
    protected $field = [
    ];

    /**
     * 验证场景
     */
    protected $scene = [
    ];

    public function __construct(array $rules = [], $message = [], $field = [])
    {
        $this->field = [
            'title' => '标题',
            'description' => '描述',
            'type'   => '类型', 
        ];
        parent::__construct($rules, $message, $field);
    }

}
